<template>
  <!--组织设置页面-->
  <!--一个大的div包含两个小div，其中一个小div分为左右两部分-->
  <div style="background: #ffffff; width: 100%; height: 100%">

  </div>
</template>
<script>
   import Tree from './NavBasicManagerment/tree.vue'
   import Dangform from './NavBasicManagerment/dangForm.vue'
    export default {
        name: '',
        components: {
           Tree,Dangform
        },
        data () {
            return {
              sosbb:'',
              label1:{
                one:'组织领导职务',
                tuo:'登录密码',
                three:'组织领导职务'
              },
              dynamicValidateForm: {
                name: '',
                lastname:'',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                desc: '',
                domains: [{
                  name: '',
                  password: '',
                  job: '',

                }],
                form: {
                  name: '',
                  region: '',
                  date1: '',
                  date2: '',
                  delivery: false,
                  type: [],
                  resource: '',
                  desc: ''
                },
                userForm: '',
                seachVue: '',
                checked: '',
                dangformame: '',
                buttonName: '',
                dialogVisible: false,
                add1: '',
                add2: '',
                add3: '',
                msg: '这个是Home模板页',
                lastzuzhi: [
                  {
                    value: '雷甸镇党建',
                    label: '雷甸镇党建'
                  },
                  {
                    value: '中兴社区党委',
                    label: '中兴社区党委'
                  },
                  {
                    value: '和平村党总支',
                    label: '和平村党总支'
                  },
                  {
                    value: '中兴社区一支部',
                    label: '中兴社区一支部'
                  },
                  {
                    value: '中兴社区二支部',
                    label: '中兴社区二支部'
                  },
                  {
                    value: '中兴社区三支部',
                    label: '中兴社区三支部'
                  },
                ],
                manys: [
                  {
                    name: '1',
                    job: '1',
                    number: '1'
                  },
                ],
                addall: {
                  name: '',
                  job: '',
                  number: '1'
                }}
        }},
        methods: {
            /*接收子组件的数据赋值给表单相对应的数据*/
          showshow:function(dass,sss){
              console.log(dass);
            this.dynamicValidateForm.name=dass;
            this.dynamicValidateForm.lastname=sss;
          },

          addOrganization(){

          },
          updateOrganization(){

          }, submitForm(formName) {
            this.$refs[formName].validate((valid) => {
              if (valid) {
                alert('submit!');
              } else {
                console.log('error submit!!');
                return false;
              }
            });
          },
          resetForm(formName) {
            this.$refs[formName].resetFields();
          },
          removeDomain(item) {
            var index = this.dynamicValidateForm.domains.indexOf(item)
            if (index !== -1) {
              this.dynamicValidateForm.domains.splice(index, 1)
            }
          },
          addDomain() {
            this.dynamicValidateForm.domains.push({
              value: '',
              key: Date.now()
            });
          },

          /*修改组织*/
          /*判断有没有选中*/
         updateMg(){
             console.log(this.$refs.c1);
            if(this.$refs.c1.getback()===null||this.$refs.c1.getback()===""){
              this.$notify.error({
                title: '操作错误',
                message: '请先选择一条数据,再进行审核发布'
              });
              return;
            }

          },
          addMg(){

          }
        },
      mounted:{
        incerementval(value111,value222) {
            console.log(value111);
          console.log(value222);
          this.dangformame.name=value111;
          this.dangformame.lastname=value222;
        },

      }

    }
</script>
<style scoped>

</style>
